package operatorlearn;

public class MainTest3 {

	/**
	 * @param args
	 */
	public static void printArray(Object... args){
		for(Object obj:args){
			System.out.print(obj+" ");
		}
		System.out.println("");
	}
	public static void printArray2(Object [] args){
		for(Object obj : args){
			System.out.print(obj+" ");
		}
		System.out.println("");
	}
	public static MainTest3 getThis(){
		System.out.println(MyEnum.values());
		return null;
	}
	public enum MyEnum{hello,welcome,thankyou,good}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		printArray(new Integer(10),new String("hello world"),new TestDataObj(1,2));
		printArray2(new Object[]{new Integer(10),new String("welcome")});
		System.out.print("the result of printArray() is :");
		printArray();
		System.out.println("the end");
		printArray(new Object[]{new Integer(100)});
		TestDataObj t=new TestDataObj(2,3);
		System.out.println(t.getThis());
		TestDataObj t2=new TestDataObj(2,3);
		System.out.println(t2.getThis());
		Object o[]=new Object[4];
		o[0]=new Integer(3);
		o[1]=new String("hello");
		o[2]=new Character('c');
		o[3]=new Boolean(false);
		for(int i =0;i<o.length;i++){
			System.out.println("the value of o array is "+o[i]);
		}
		t.getEnum();
		
	}

}
